<style scoped>
.about-container {
  min-height: calc(100vh - 60px);
  background: #f8f8f8;
  padding: 20px;
  padding-top: 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

/* 暗黑模式样式 */
body.dark-mode .about-container {
  background: #1e1e1e;
}

.content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 20;
}

.page-title {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 2rem;
  position: relative;
  z-index: 30;
}

/* 暗黑模式标题样式 */
body.dark-mode .page-title {
  color: #f8f8f8;
}

.info-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  position: relative;
  z-index: 40;
}

/* 暗黑模式信息卡片样式 */
body.dark-mode .info-card {
  background: #2d2d2d;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.section-title {
  color: #333;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* 暗黑模式章节标题样式 */
body.dark-mode .section-title {
  color: #f8f8f8;
  border-bottom: 1px solid #444;
}

.description {
  color: #666;
  line-height: 1.6;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* 暗黑模式描述样式 */
body.dark-mode .description {
  color: #aaaaaa;
}

.details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.label {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

/* 暗黑模式标签样式 */
body.dark-mode .label {
  color: #f8f8f8;
}

.value {
  color: #666;
}

/* 暗黑模式值样式 */
body.dark-mode .value {
  color: #aaaaaa;
}

.team-section {
  margin-bottom: 30px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.team-member {
  display: flex;
  justify-content: center;
}

.member-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  transition: transform 0.3s ease;
}

/* 暗黑模式成员卡片样式 */
body.dark-mode .member-card {
  background: #2d2d2d;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.member-card:hover {
  transform: translateY(-5px);
}

/* 暗黑模式成员卡片悬停样式 */
body.dark-mode .member-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.member-avatar {
  height: 150px;
  background: linear-gradient(135deg, #646cff, #535bf2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  font-weight: bold;
}

.member-info {
  padding: 20px;
  text-align: center;
}

.member-name {
  margin: 0 0 5px;
  color: #333;
  font-size: 1.2rem;
}

/* 暗黑模式成员姓名样式 */
body.dark-mode .member-name {
  color: #f8f8f8;
}

.member-role {
  margin: 0 0 10px;
  color: #646cff;
  font-weight: 500;
}

/* 暗黑模式成员角色样式 */
body.dark-mode .member-role {
  color: #6495ed;
}

.member-bio {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* 暗黑模式成员简介样式 */
body.dark-mode .member-bio {
  color: #aaaaaa;
}

.contact-section {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 暗黑模式联系部分样式 */
body.dark-mode .contact-section {
  background: #2d2d2d;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-info p {
  color: #666;
  line-height: 1.6;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

/* 暗黑模式联系信息样式 */
body.dark-mode .contact-info p {
  color: #aaaaaa;
}

.contact-details p {
  margin: 10px 0;
  color: #333;
  font-weight: 500;
}

/* 暗黑模式联系详情样式 */
body.dark-mode .contact-details p {
  color: #f8f8f8;
}

@media (max-width: 768px) {
  .details {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
}
</style>
<script setup lang="ts">
import { ref } from 'vue'

// 页面数据
const pageInfo = ref({
  title: "关于我们",
  description: "《三毛流浪记》是一部经典的中国动画作品，讲述了一个孤儿三毛在旧社会的流浪生活。通过三毛的经历，展现了那个时代底层人民的苦难与坚韧。"
})

const workDetails = ref([
  { label: "作品类型", value: "动画片" },
  { label: "首播时间", value: "1949年" },
  { label: "制作公司", value: "上海美术电影制片厂" },
  { label: "导演", value: "赵明、严恭" },
  { label: "主要角色", value: "三毛" },
  { label: "集数", value: "26集" }
])

const teamMembers = ref([
  {
    name: "张三",
    role: "项目经理",
    bio: "负责项目的整体规划和协调工作，拥有丰富的项目管理经验。"
  },
  {
    name: "李四",
    role: "前端开发",
    bio: "负责网站前端界面开发，专注于用户体验和响应式设计。"
  },
  {
    name: "王五",
    role: "后端开发",
    bio: "负责服务器端逻辑开发，确保系统稳定性和数据安全。"
  },
  {
    name: "赵六",
    role: "UI设计师",
    bio: "负责网站界面设计，创造美观且易用的用户界面。"
  }
])

const contactInfo = ref({
  description: "如果您对我们的网站有任何建议或意见，欢迎通过以下方式联系我们：",
  details: [
    "邮箱：sanhmao@example.com",
    "电话：400-123-4567",
    "地址：上海市浦东新区某某路123号"
  ]
})
</script>

<template>
  <div class="about-container">
    <div class="content-wrapper">
      <h1 class="page-title">{{ pageInfo.title }}</h1>
      
      <div class="info-card">
        <h2 class="section-title">作品介绍</h2>
        <p class="description">{{ pageInfo.description }}</p>
        
        <h3 class="section-title">作品详情</h3>
        <div class="details">
          <div class="detail-item" v-for="(item, index) in workDetails" :key="index">
            <span class="label">{{ item.label }}：</span>
            <span class="value">{{ item.value }}</span>
          </div>
        </div>
      </div>
      
      <div class="info-card team-section">
        <h2 class="section-title">创作团队</h2>
        <div class="team-grid">
          <div class="team-member" v-for="(member, index) in teamMembers" :key="index">
            <div class="member-card">
              <div class="member-avatar">
                <div class="avatar-placeholder">{{ member.name.charAt(0) }}</div>
              </div>
              <div class="member-info">
                <h3 class="member-name">{{ member.name }}</h3>
                <p class="member-role">{{ member.role }}</p>
                <p class="member-bio">{{ member.bio }}</p>
              </div>
            </div>
          </div>
        </div>
      </div>
      
      <div class="contact-section">
        <h2 class="section-title">联系我们</h2>
        <div class="contact-info">
          <p>{{ contactInfo.description }}</p>
          <div class="contact-details">
            <p v-for="(detail, index) in contactInfo.details" :key="index">{{ detail }}</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
